//
//  BaseNavigationController.m
//  时光电影项目
//
//  Created by 墨狂之逸才 on 15/7/17.
//  Copyright (c) 2015年 墨狂之逸才. All rights reserved.
//

#import "BaseNavigationController.h"

@interface BaseNavigationController ()

@end

@implementation BaseNavigationController

//ios 7 以下使用如下方法修改状态栏的样式，多层关系种，nav的子控件里面重写该方法无效
- (UIStatusBarStyle)preferredStatusBarStyle
{
//    NSLog(@"preferredStatusBarStyle");
    //默认是黑色
    return [self.topViewController preferredStatusBarStyle];
    
    //白色
    //return UIStatusBarStyleLightContent;
    
}



//- (UIViewController *)childViewControllerForStatusBarStyle
//{
//    return self.topViewController;
//}

- (void)viewDidLoad {
    [super viewDidLoad];
    
    //在baseNav中设置所有的navBar的背景图片
    [self.navigationBar setBackgroundImage:[UIImage imageNamed:@"nav_bg_all-64"] forBarMetrics:UIBarMetricsDefault];
    
    self.navigationBar.barStyle = UIBarStyleBlack;
    
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
